Accept the B and H of a triangle, compute the areaΒΆ
Write a python program that will accept the base
and height of a triangle and compute the area.
b = int(input("Input the base : "))
h = int(input("Input the height : "))
area = b*h/2
print("area = ", area)
Output:
Input the base : 20
Input the height : 40
area = 400.0